package com.xxchat.entity.enums;

import lombok.Getter;

/**
 * @author Waicc
 */
@Getter
public enum UserDeletedEnum {
    NOT_DELETED(0, "未删除"),
    DELETED(1, "已删除");

    private final Integer status;
    private final String desc;

    public static UserDeletedEnum getByStatus(Integer status) {
        for (UserDeletedEnum e : UserDeletedEnum.values()) {
            if (e.status.equals(status)) {
                return e;
            }
        }
        return null;
    }

    UserDeletedEnum(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }
}
